// 专门用来封装公共接口的文件
import axios from "@/utils/request";

// 文件上传接口
export function upload(data) {
    return axios({
        url: '/upload',
        method: 'post',
        data,
        // headers: {
        //     Authorization: localStorage.getItem('tokenLine')
        // }
    })
}

// 封装栏目列表接口
export function category() {
    return axios({
        url: '/category',
        // headers: {
        //     Authorization: localStorage.getItem('tokenLine')
        // }
    })
}